//
//  Color.m
//  OC04-解析HomeWork
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import "Color.h"

@implementation Color
- (instancetype)initWithName:(NSString *)name colorValue:(NSString *)colorValue {
    self = [super init];
    if (self) {
        _name = name;
        _colorValue = colorValue;
    }
    return self;
}
- (NSString *)getName {
    return _name;
}
- (NSString *)getColorValue {
    return _colorValue;
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@%@", _name, _colorValue];
}
@end
